package put.poznan.qmese.ticket.model;

public class TicketFactory {

	public Ticket build(int option){
		
		switch(option){
		case 1:
			return new NormalTicket(Time.QUARTER, Cost.QUARTER);
		case 2:
			return new NormalTicket(Time.HALF, Cost.HALF);
		case 3:
			return new NormalTicket(Time.ALLDAY, Cost.ALLDAY);
		case 4:
			return new HalfTicket(Time.QUARTER, Cost.QUARTER);
		case 5:
			return new HalfTicket(Time.HALF, Cost.HALF);
		case 6:
			return new HalfTicket(Time.ALLDAY, Cost.ALLDAY);
		}
		return null;
	}
}
